@import "materialdesignicons/variables";
@import "materialdesignicons/functions";
@import "components/materialize_overrides";
@import "materialize-components/variables";

// hide odoo debug manager
.o_debug_manager {
  display: none;
}

// variables:
$side-nav-width: 300px;
$subheader-height: 84px;
$progress-height: 4px;

// Color definitions:
$green: #1b5e20;
$green-light: #f1f8e9;
// Odoo palette definition
$agile-main-color-lighten-5: #EFEFF5;
$agile-main-color-lighten-4: #D8D7E6;
$agile-main-color-lighten-3: #BEBDD5;
$agile-main-color-lighten-2: #A4A2C4;
$agile-main-color-lighten-1: #918EB7;
$agile-main-color: #7D7AAA;
$agile-main-color-darken-1: #7572A3;
$agile-main-color-darken-2: #6A6799;
$agile-main-color-darken-3: #605D90;
$agile-main-color-darken-4: #4D4A7F;
.agile-main-color.lighten-5 {
  background-color: $agile-main-color-lighten-5 !important;
}

.agile-main-color-text.text-lighten-5 {
  color: $agile-main-color-lighten-5 !important;
}

.agile-main-color.lighten-4 {
  background-color: $agile-main-color-lighten-4 !important;
}

.agile-main-color-text.text-lighten-4 {
  color: $agile-main-color-lighten-4 !important;
}

.agile-main-color.lighten-3 {
  background-color: $agile-main-color-lighten-3 !important;
}

.agile-main-color-text.text-lighten-3 {
  color: $agile-main-color-lighten-3 !important;
}

.agile-main-color.lighten-2 {
  background-color: $agile-main-color-lighten-2 !important;
}

.agile-main-color-text.text-lighten-2 {
  color: $agile-main-color-lighten-2 !important;
}

.agile-main-color.lighten-1 {
  background-color: $agile-main-color-lighten-1 !important;
}

.agile-main-color-text.text-lighten-1 {
  color: $agile-main-color-lighten-1 !important;
}

.agile-main-color {
  background-color: $agile-main-color !important;
}

.agile-main-color-text {
  color: $agile-main-color !important;
}

.agile-main-color.darken-1 {
  background-color: $agile-main-color-darken-1 !important;
}

.agile-main-color-text.text-darken-1 {
  color: $agile-main-color-darken-1 !important;
}

.agile-main-color.darken-2 {
  background-color: $agile-main-color-darken-2 !important;
}

.agile-main-color-text.text-darken-2 {
  color: $agile-main-color-darken-2 !important;
}

.agile-main-color.darken-3 {
  background-color: $agile-main-color-darken-3 !important;
}

.agile-main-color-text.text-darken-3 {
  color: $agile-main-color-darken-3 !important;
}

.agile-main-color.darken-4 {
  background-color: $agile-main-color-darken-4 !important;
}

.agile-main-color-text.text-darken-4 {
  color: $agile-main-color-darken-4 !important;
}

.agile-main-color.accent-1 {
  background-color: #E0DEFF !important;
}

.agile-main-color-text.text-accent-1 {
  color: #E0DEFF !important;
}

.agile-main-color.accent-2 {
  background-color: #AFABFF !important;
}

.agile-main-color-text.text-accent-2 {
  color: #AFABFF !important;
}

.agile-main-color.accent-3 {
  background-color: #7F78FF !important;
}

.agile-main-color-text.text-accent-3 {
  color: #7F78FF !important;
}

.agile-main-color.accent-4 {
  background-color: #675EFF !important;
}

.agile-main-color-text.text-accent-4 {
  color: #675EFF !important;
}

.darken-1, .darken-2, .darken-3, .darken-4 {
  color: #fff;
}

/* Preloader START */
$preloader-size: 100px;
#preloader-stage {
  position: absolute;
  display: flex;
  z-index: 1000;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  justify-content: center;
  align-items: center;
  .preloader-wrapper {
    width: $preloader-size;
    height: $preloader-size;
  }
  -webkit-transition: all 0.3s 1s ease-out;
  transition: all 0.3s 1s ease-out;
}

body.loaded #preloader-stage {
  visibility: hidden;
  opacity: 0;
}

/* Preloader END */

/*Color palette extensions*/

a {
  cursor: pointer;
  color: $agile-main-color;
}

$todo-color: #0D47A1;
$in_progress-color: #ff8f00;
$done-color: #2e7d32;

.wkf-state-todo {
  background-color: $todo-color;
}

.wkf-state-in_progress {
  background-color: $in_progress-color;
}

.wkf-state-done {
  background-color: $done-color;
}

header {
  ul li a {
    font-weight: bold;
    i {
      text-align: center;
    }
  }
  .nav-wrapper {
    display: flex;
    .nav-logo {
      padding: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100%;
      &:hover {
        background-color: transparent;
      }
      img {
        height: calc(#{$navbar-height} - 10px);
        max-width: 100%;
      }
    }
    .nav-left {
      width: $side-nav-width;
      @media #{$medium-and-down} {
        width: auto;
        flex: 1;
        margin-left: $navbar-height;
      }
      @media #{$small-and-down}{
        margin-left: $navbar-height-mobile;
      }
    }
    .nav-search {
      position: relative;
      align-items: center;
      flex: 1;
      margin: auto 0;
      box-sizing: border-box;
      @media #{$medium-and-down} {
        display: none;
      }
      i {
        position: absolute;
        font-size: 24px;
        top: 6px;
        left: 24px;
        line-height: 32px !important;
        -webkit-transition: color 200ms ease;
        transition: color 200ms ease;
      }
      ::-webkit-input-placeholder {
        color: white;
      }

      :-moz-placeholder {
        color: white;
      }

      ::-moz-placeholder {
        color: white;
      }

      :-ms-input-placeholder {
        color: white;
      }
      input {
        display: block;
        padding: 8px 8px 8px 72px;
        @media #{$medium-and-down} {
          padding: 8px;
        }
        background: rgba(255, 255, 255, 0.3);
        height: 24px;
        -webkit-transition: all 200ms ease;
        transition: all 200ms ease;
        border: none;
        font-size: 16px;
        font-weight: 400;
        outline: none;
        border-radius: 3px;
        width: 100%;
        box-sizing: border-box;
        height: 100%;
        margin: 0;
        &:focus {
          border-bottom: none !important;
          box-shadow: none !important;
        }
      }
    }
    .nav-middle {

    }
    .nav-right {
      .notification-count {
        position: absolute;
        top: 12px;
        color: white;
        background: red;
        border-radius: 2px;
        font-size: 13px;
        line-height: 15px;
        min-width: 15px;
        border-bottom: 1px solid $agile-main-color;
        border-left: 1px solid $agile-main-color;
        text-align: center;
        font-style: normal;

        &:empty {
          display: none;
        }
      }
      .search-button {
        display: none;
      }
      .header-dropdown {
        li a {
          display: flex;
          align-items: center;
          span {
            white-space: nowrap;
            padding: 0;
          }
        }
      }
    }
    &.with-search {
      .nav-right {
        .search-button {
          display: inherit;
        }
      }
    }
    @media #{$medium-and-down} {
      &.search-open {
        .nav-left {
          flex: inherit;
          .nav-logo {
            display: none;
          }
        }
        .nav-search {
          display: block;
        }
      }
    }
  }
  #team-dropdown {
    li {
      .team-image {
        width: 30px;
        height: 30px;
        margin-right: 10px;
        display: inline-block;
        align-self: center;
      }
      a:hover {
        background: none;
      }
      display: flex;
    }
  }
}

#left-sidebar-nav {
  ul.side-nav.leftside-navigation {
    top: $navbar-height-mobile;
    overflow: auto;
    @media #{$medium-and-up} {
      top: $navbar-height;
    }
    li.board-chooser {
      display: flex;
      flex-direction: row;
      background-color: $agile-main-color-lighten-2;
      height: 88px;
      a:hover {
        background-color: initial;
      }
      .board-chooser-left {
        display: flex;
        margin-left: 5px;
        width: 64px;
        flex-shrink: 0;
        align-items: center;
      }
      .board-chooser-middle {
        flex: 1;
        padding: 0 5px;
        overflow: hidden;
        .project-name {
          padding: 0;
          height: 30px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          font-size: 15px;
          font-weight: inherit;
          text-shadow: rgb(68, 68, 68) 1px 1px 1px;
        }
        .available-boards {
          padding: 0;
          height: 30px;
          font-size: 13px;
          user-select: none;
          text-shadow: rgb(68, 68, 68) 1px 1px 1px;
          i {
            font-size: 1.6rem;
            margin-left: 10px;
          }
        }
        #board-chooser-dropdown a {
          padding: 8px 15px;
        }
        .dropdown-content {
          a {
            height: inherit;
          }
        }
      }
    }
    li.hide-on-large-only {
      margin-bottom: 20px;
    }
  }
  .top-nav {
    position: absolute;
    top: calc((#{$navbar-height-mobile} - 24px) / 2);
    left: calc((#{$navbar-height-mobile} - 24px) / 2);
    z-index: 999;
    color: white;
    @media #{$medium-and-up} {
      top: calc((#{$navbar-height} - 24px) / 2);
      left: calc((#{$navbar-height} - 24px) / 2);
    }
  }
}

.navbar-fixed {
  z-index: 999;
}

#middle {
  overflow-y: hidden;
  height: calc(100vh - #{$navbar-height})
}

#middle-content {
  height: 100%;
  overflow: auto;
}

div.with-menu {
  @media #{$large-and-up} {
    div#middle {
      margin-left: $side-nav-width;
    }
  }
}

.side-nav {
  a {
    font-weight: inherit;
  }
  width: $side-nav-width;
  li > a > i, li > a > [class^="mdi-"], li > a > [class*="mdi-"] {
    line-height: inherit;
    width: 2rem;
    font-size: 1.6rem;
    float: left;
    text-align: center;
    margin-right: 1rem;
  }
}

#subheader-wrapper {
  height: $subheader-height;
  position: relative;
  #subheader-widget {
    display: flex;
    height: 100%;
    .view-title {
      align-self: center;
      .text-only {
        font-size: x-large;
      }
      .title-wrapper {
        display: flex;
        margin-left: 20px;
        .title-left {
          height: 64px;
          align-self: center;
        }
        .title-right {
          flex: 1;
          padding: 5px 10px;
          display: flex;
          flex-direction: column;
          .main-title {
            font-size: 1.5rem;
            font-weight: 500;
            color: black;
          }
          .subtitle {
            font-size: 1.3rem;
            color: black;
          }
          //.mdi-close {
          //  cursor: pointer;
          //}
        }
      }
    }
    .subheader-middle {
      flex: 1;
    }
    .actions-menu {
      align-self: center;
    }
  }
}

#workflow-transition-widget {
  margin-right: 30px;
  *:not(:last-child) {
    margin-right: 5px;
  }
}

:not(.container) > #subheader-wrapper .view-title {
  margin-left: 20px;
}

.card-header.color-label::after {
  display: block;
  height: 12px;
  content: close-quote;
}

.project-card-title {
  padding: 20px;
  h5 {
    margin: 0;
    font-weight: 300;
    color: #fff;
  }
}

.project-card-key {
  font-size: 1.0rem;
  margin: 0;
  color: #fff;
}

.card-header .card-title {
  height: auto;
  vertical-align: middle;
  font-size: 0;
}

.card-content .btn-move-up {
  top: -40px;
}

.card-img-wrapper, .card-title {
  display: inline-block;
  vertical-align: middle;
}

.card-img-wrapper {
  img {
    vertical-align: middle;
    padding-left: 20px;
  }
  + .project-card-title {
    padding-left: 0;
  }
}

br.correct-size {
  font-size: 16px;
}

.profile-image {
  display: inline-block;
  vertical-align: middle;
  float: none;
}

//show chevrons in collapsible header
.collapsible-header {
  height: auto;
  &:after {
    float: left;
    margin-right: 10px;
    font-family: "Material Design Icons";
    content: char(map-get($mdi-icons, "chevron-right"));
    font-size: 18px;
  }
  &.active:after {
    content: char(map-get($mdi-icons, "chevron-down"));;
  }
}

.list {
  margin: 10px 0;
  .list-header {
    position: relative;
    display: flex;
    padding: 10px 0 0 15px;
    .list-title {
      display: inline;
      font-weight: 500;
      flex: 1;
      .list-count {
        font-weight: normal;
        color: #999;
        margin-left: 10px;
        display: inline;
      }
    }
    .context-menu {
      position: relative;
      white-space: nowrap;
      flex: 0.0001;
    }
  }
  .list-preloader {
    text-align: center;
  }
  .collection {
    border: none;
    .collection-item {
      padding: 0;
      .task-list-item {
        cursor: initial;
      }
    }
    > li {
      list-style: none;
    }
  }
}

.context-menu {
  position: absolute;
  right: 0;
  top: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-align: end;
  -ms-flex-align: end;
  align-items: flex-end;
  span.rest {
    display: none;
  }
  .switch {
    display: inline;
  }
  .estimates {
    line-height: initial;
    padding-right: 15px;
  }
}

.estimates {
  white-space: nowrap;
}

.estimate {
  padding: 2px 4px;
  font-size: 0.8rem;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px;
  background-clip: padding-box;
}

.state, .tag {
  margin-right: 5px;
  white-space: nowrap;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: small;
  font-weight: 400;
  background-color: transparent;
  display: inline-block;
}

.state {
  &.wkf-state-todo {
    &.filled {
      background-color: $todo-color;
      color: white !important;
    }
    color: $todo-color;
    border: 1px solid $todo-color;
  }

  &.wkf-state-in_progress {
    &.filled {
      background-color: $in_progress-color;
      color: white !important;
    }
    color: $in_progress-color;
    border: 1px solid $in_progress-color;
  }

  &.wkf-state-done {
    &.filled {
      background-color: $done-color;
      color: white !important;
    }
    color: $done-color;
    border: 1px solid $done-color;
  }
}

.tag {
  color: white;
  &.o_tag_color_0 {
    background-color: #B6BBBF;
  }
  &.o_tag_color_1 {
    background-color: #61BD4F;
  }
  &.o_tag_color_2 {
    background-color: #F2D600;
  }
  &.o_tag_color_3 {
    background-color: #FFAB4A;
  }
  &.o_tag_color_4 {
    background-color: #EB5A46;
  }
  &.o_tag_color_5 {
    background-color: #A24689;
  }
  &.o_tag_color_6 {
    background-color: #0079BF;
  }
  &.o_tag_color_7 {
    background-color: #00C2E0;
  }
  &.o_tag_color_8 {
    background-color: #4CD98E;
  }
  &.o_tag_color_9 {
    background-color: #FF80CE;
  }
  &.o_tag_color_10 {
    background-color: #4D4D4D;
  }
}

.task-list.collection {
  overflow: visible;
  .collection-item {
    padding: 0;
  }
}

.task-list {
  .task-list-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 15px 8px 42px;
    position: relative;
    font-weight: 500;
    .context-menu {
      top: 9px;
    }
  }
  > div[data-sortable]:empty {
    padding: 20px;
  }
  .list-preloader {
    text-align: center;
  }
}

.task-list-item, .project-list-item {
  cursor: move;
  display: flex;
  align-items: center;
  padding: 0 !important;
  .subtasks-list {
    padding-left: 25px;
  }
  &:hover {
    background-color: rgba(200, 200, 200, 0.1);
  }
  .task-key, .project-key {
    margin-right: 5px;
  }
  .task-item-left, .project-item-left {
    padding: 2px 10px;
    white-space: nowrap;
  }
  .task-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
  }
  .task-item-right, .project-item-right {
    //text-align:center;
    display: flex;
    align-items: center;
    flex: 0.0001;
    padding: 2px 10px;
    img.user-image {
      width: 20px;
      height: 20px;
      overflow: hidden;
      left: 15px;
      display: inline-block;
      vertical-align: middle;
    }
    .estimate {
      margin-right: 5px;
    }
    .task-menu {
      font-size: 20px;
      width: 24px;
      text-align: center;
      margin-left: 3px;
      border-radius: 50%;
      &:hover {
        cursor: pointer;
      }
    }
  }
  .link-type {
    align-self: center;
    margin-right: 10px;
  }
}

.task-lists-view {
  .collection a.collection-item {
    color: rgba(0, 0, 0, 0.87);
  }
  .collapsible-body .collection:empty {
    padding: 20px;
  }

  .task-list-title {
    display: inline;
    cursor: text;
  }

  .collapsible-header {
    position: relative;
    .date {
      display: none;
      font-size: 0.8rem;
    }
  }

  .task-count {
    font-weight: normal;
    color: #999;
    margin-left: 10px;
    display: inline;
  }
}

/*Kanban table start*/

.column-headers, .columns {
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  table-layout: fixed;
  width: 100%;
  padding: 0;
}

.subtasks {
  .parent-key {
    display: none;
  }
}

.column {
  position: relative;
  box-sizing: border-box;
  flex: 1;
  min-width: 256px;
  padding: 10px;
  list-style: none;
  /*position: relative;*/
  /*text-align: left;*/
  /*vertical-align: middle;*/
  border-radius: 2px;
}

.column-headers .column {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  border-bottom: 1px solid #d0d0d0;
}

.column {
  &:nth-child(even) {
    background-color: #f1f1f1;
  }
  .card-panel {
    margin: 15px 0 0 0;
    &:first-child {
      margin-top: 0;
    }
  }
}

.subtask-group:not(:first-child) {
  margin-top: 3px;
}

.column .card-panel:last-child {
  margin-bottom: 0;
}

#kanban-table-view {
  .section {
    margin-top: 7.5px;
    .swimlane {
      .card-panel {
        padding: 10px;
        display: flex;
        flex-direction: column;
        .card-title {
          //font-size: 1rem;
          margin-top: 0;
        }
        .card-footer {
          display: flex;
          align-items: flex-end;
          .footer-content {
            .state {
              display: inline;
            }
            flex: 1;
          }
          .card-footer-image {
            width: 30px;
            height: 30px;
          }
        }
      }

      .collapsible {
        border: 0;
        box-shadow: none;
        li {
          border: 0;
          box-shadow: none;
        }
      }
      .collapsible-header {
        border: 0;
        background-color: transparent;
        i {
          width: auto;
          font-size: inherit;
          line-height: inherit;
          display: inherit;
          float: inherit;
          text-align: inherit;
          margin: inherit;
        }
        .task-key {
          margin-left: 10px;
        }
        .count {
          font-weight: initial;
          font-size: smaller;
          color: #787D8A;
          margin-left: 10px;
        }
        & > div:only-child {
          display: inline-block;
        }
      }
      .collapsible-body {
        border: 0;
      }
    }
  }
  > .empty {
    img {
      display: block;
      width: 100px;
      margin: auto;
      @media #{$medium-and-up} {
        width: 150px;
      }
      @media #{$large-and-up} {
        width: 200px;
      }
    }
    h3 {
      font-family: Roboto;
      text-align: center;
    }
  }
}

/*Kanban table end*/

/*View manager loading bar START*/

.view-flex-column {
  display: flex;
  flex-direction: column;
}

.view-manager > .progress {
  margin: 0;
  visibility: hidden;
  &.active {
    visibility: visible;
  }
}

.view-content {
  > .container {
    position: relative;
    &:before {
      content: "";
      display: block;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 10;
      background-color: #F9F9F9;
    }
  }
  &.loaded > .container:before {
    display: none;
  }
  .fixed-action-btn {
    .btn-floating:not i {
      font-size: 1.5rem;
      line-height: 34px;
    }
  }
}

.subtask-group:first-child:before, :not(.has-children) + .subtask-group:before {
  content: attr(data-parent-name);
  margin: 15px 0 3px 0;
  padding: 3px 3px 3px 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  display: block;
  background-color: #e2e2e2;
  font-size: 13px;
}

.subtask-group .card-panel {
  margin-top: 3px;
  margin-left: 10px;
}

.column {
  .subtask-group:first-child::before {
    margin-top: 0;
  }
  .column-overlay {
    position: absolute;
    display: flex;
    flex-direction: column;
    z-index: 2;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    /*border: 2px dashed black;*/
    /*padding:3px;*/
    background-color: white;
    .state {
      display: flex;
      justify-content: center;
      align-items: center;
      flex: 1;
      border: 2px dashed black;
      margin: 3px;
      border-radius: 8px;
      &.hover {
        background-color: $green-light !important;
        border-color: $green;
        color: $green;
        font-weight: bold;
      }
    }
  }
}

/*Floating button flat START*/

.fab-flat {
  .btn-floating {
    background-color: transparent;
    color: #343434;
    box-shadow: none;
    i {
      color: #343434;
    }
  }
  &.horizontal ul li {
    margin: 0 15px 0 0;
  }
}

/*Floating button flat END*/

.floating-action-btn {
  bottom: 23px;
  right: 23px;
  z-index: 1500;
}

.dropdown-content {
  overflow: visible;
  .assign-to-me a {
    display: flex;
    align-items: center;
    img {
      width: 18px;
      height: 18px;
      margin-right: 7px;
    }
  }
  li {
    min-height: 0;
    > a, > span {
      font-size: 1rem;
      color: $agile-main-color;
      display: block;
      padding: 0.5rem 0.5rem;
      i.mdi {
        margin-right: 10px;
      }
    }
    .select-dropdown {
      z-index: 2000;
    }
  }
}

/*Materialize fixes START*/

.btn {
  background-color: $agile-main-color;
  &:hover {
    background-color: $agile-main-color-darken-2;
  }
}

.collapsible-header {
  font-weight: 500;
}

.progress {
  height: $progress-height;
}

.picker__date-display {
  display: none;
}

.lean-overlay {
  z-index: 1099 !important;
}

.input-help-wrapper {
  display: flex;
  .input-field {
    flex: 1;
  }
  .mdi {
    font-size: 22px;
    margin: auto 0 20px 5px;
    color: #6f6f6f;
  }
}

.modal.modal-fixed-footer {
  z-index: 1100 !important;

  @media #{$small-and-down} {
    top: 0 !important;
    max-height: none;
    height: 100%;
    margin: 0;
    width: 100%;
  }
}

.btn-flat:hover {
  background-color: transparent;
  box-shadow: none;
}

.collapsible-title {
  display: inline-block;
}

p {
  padding: 0;
  margin: 0;
}

.section {
  padding: 0;
}

label.materialnote-label {
  font-size: 0.8rem;
  -webkit-transform: translateY(-140%);
  -moz-transform: translateY(-140%);
  -ms-transform: translateY(-140%);
  -o-transform: translateY(-140%);
  transform: translateY(-140%);
  position: initial;
}

table, mytable {
  display: table;
  tr, mytr {
    display: table-row;
  }
  td, mytd {
    display: table-cell;
  }
  &.flip {
    thead {
      display: block;
      float: left;
      border: 0;
      border-right: 1px solid #d0d0d0;
      tr, mytr {
        padding: 0 10px 0 0;
      }
      th {
        display: block;
      }
    }
    tbody {
      display: block;
      width: auto;
      position: relative;
      overflow-x: auto;
      white-space: nowrap;
      tr {
        display: inline-block;
        vertical-align: top;
      }
    }
  }
  &.left-header {
    border: 0;
    td, mytd {
      padding: 2px 0 2px 8px;
    }
    tr td:first-child, mytr mytd:first-child {
      width: 1%;
      white-space: nowrap;
      font-weight: 300;
      color: $agile-main-color;
      padding: 0 20px 0 0;
      border-right: 1px solid #d0d0d0;
      vertical-align: middle;
    }
  }
}

td, th {
  padding: 5px 5px;
}

.btn-flat:not(.white-text) {
  color: #343434;
  i {
    color: #343434;
  }
}

.btn i {
  vertical-align: top;
}

.input-field {
  position: relative;
  margin-top: 1rem;
  div.error {
    position: relative;
    top: -1rem;
    left: 0;
    font-size: 0.8rem;
    color: #FF4081;
    -webkit-transform: translateY(0%);
    -ms-transform: translateY(0%);
    -o-transform: translateY(0%);
    transform: translateY(0%);
  }
  input:-webkit-autofill {
    background-color: unset;
  }
}

.relative {
  position: relative;
}

.with-shadow {
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

/*Helper classes END*/

.slide-viewport {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.slide-wrapper .splitter {
  flex: 0 0 auto;
  width: 10px;
  height: inherit;
  cursor: col-resize;
  align-items: center;
  justify-content: center;
  display: flex;
  &:before {
    content: '';
    background: #bababa;
    height: 60px;
    flex: 0.3;
  }
}

@media #{$large-and-up} {
  .slide-viewport {
    width: calc(100vw - #{$side-nav-width});
  }
}

#right-slide-controller {
  width: 160px;
  position: absolute;
  left: calc(50% - 80px);
  bottom: 0;
}

.slide-wrapper {
  width: 100%;
  display: flex;
  height: calc(100vh - #{$navbar-height} - #{$subheader-height} - #{$progress-height});
  flex-direction: row;
}

.slide-part {
  flex: 1;
  overflow: auto;
}

.master-list {
  margin: auto 3px;
}

.slide-viewport:not(.with-right) #right-detail-view {
  display: none;
}

@media #{$medium-and-down} {
  #right-slide-controller {
    display: none;
  }
  .slide-wrapper {
    .slider {
      display: none;
    }
    width: 200%;
    height: calc(100vh - #{$navbar-height} - #{$subheader-height} - #{$progress-height});
  }
  .slide-viewport:not(.with-right) #right-detail-view {
    display: block;
  }
  .with-right .slide-wrapper {
    transform: translateX(-50.5%);
  }
  .slide-part {
    flex: 1 !important;
  }
}

@media #{$small-and-down} {
  .slide-wrapper {
    height: calc(100vh - #{$navbar-height} - #{$subheader-height} - #{$progress-height});
  }
}

.light-collapsible {
  border: none;
  box-shadow: none;
  .collapsible-body {
    padding: 5px 20px;
    @media #{$small-and-down} {
      padding: 2px 5px;
    }
  }
}

#right-detail-view {
  #task-card {
    margin: 7.5px 10px 7.5px 3px;
  }
}

#task-view {
  margin: auto;
  padding: 10px 25px;
  background-color: white;
  .collapsible {
    border: none;
    box-shadow: none;
    .collapsible-body {
      padding: 5px 10px;
    }
  }
  #task-card {
    margin: 0;
  }
}

#task-card {
  .task-card-title {
    color: initial;
    margin: 0;
    font-weight: 300;
  }
  .task-card-date {
    font-size: 1.0rem;
    margin: 0;
    /*color: #fff;*/
  }
  .task-state {
    padding-bottom: 15px;
  }
  .task-icon {
    font-size: 2.2rem;
    display: block;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
  }
  .task-state-wrapper {
    margin: 0 0 100px 0 !important;
  }
  .card-header {
    display: flex;
    padding: 5px;
    .card-header-left {
      width: 64px;
    }
    .card-header-right {
      justify-content: center;
      .wrapper {
        display: flex;
        align-items: center;
        .card-close {
          font-size: 1.64rem;
          margin: 5px;
        }
      }
    }
    .card-title {
      flex: 1;
      padding: 5px 10px;
      display: flex;
      flex-direction: column;
      .main-title {
        font-size: 1.15rem;
        font-weight: 500;
        color: black;
      }
      .subtitle {
        font-size: 1rem;
        color: black;
      }
      //.mdi-close {
      //  cursor: pointer;
      //}
    }
  }
  .card-content {
    background: none;
    padding: 0 20px;
    @media #{$small-and-down} {
      padding: 0;
    }
  }
  .comments {
    .collapsible-body {
      padding: 0;
    }
  }
}

#task-description {
  img {
    max-width: 100%;
  }
}

.worklog-table tr td:first-child {
  white-space: nowrap;
}

.task-link-group {
  .collection {
    border: none;
    margin-bottom: 0;
  }
  .task-link-group-header {
    font-weight: 400;
    color: $agile-main-color;
    border-bottom: 1px solid #AAA;
    margin-bottom: 3px;
  }
}

.we {
  position: relative;
  input {
    height: 1rem;
    margin: 0;
  }
}

.we-save-discard {
  position: absolute;
  right: 0;
  top: -2px;
  height: 1px;
  z-index: 100;
  i {
    font-size: 1.2rem;
    margin-left: 5px;
    &:hover {
      cursor: pointer;
    }
  }
}

.overlay {
  position: absolute;
  opacity: 0.3;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.story-points button:after {
  content: attr(count);
  position: absolute;
  width: 30px;
  height: 30px;
  left: -16px;
  top: 12px;
  text-align: center;
  background-color: $agile-main-color-lighten-4;
  color: $agile-main-color-darken-4;
  font-size: 14px;
  line-height: 28px;
  border-radius: 50%;
  border: 3px solid transparent;
  font-weight: bold;
}

// Additional material design icons sizes START
.mdi-custom-moscow-could, .mdi-custom-moscow-must, .mdi-custom-moscow-should, .mdi-custom-moscow-would {
  vertical-align: text-bottom;
  display: inline-block;
  width: 22px !important;
  height: 22px !important;
  margin-left: -2px !important;
  margin-top: -2px !important;
}

.mdi-custom-moscow-could {
  -webkit-mask-image: url(../css/custom-icons/moscow-could.svg);
  mask-image: url(../css/custom-icons/moscow-could.svg);
}

.mdi-custom-moscow-must {
  -webkit-mask-image: url(../css/custom-icons/moscow-must.svg);
  mask-image: url(../css/custom-icons/moscow-must.svg);
}

.mdi-custom-moscow-should {
  -webkit-mask-image: url(../css/custom-icons/moscow-should.svg);
  mask-image: url(../css/custom-icons/moscow-should.svg);
}

.mdi-custom-moscow-would {
  -webkit-mask-image: url(../css/custom-icons/moscow-would.svg);
  mask-image: url(../css/custom-icons/moscow-would.svg);
}

.mdi-set.mdi-20px, .mdi.mdi-20px:before {
  font-size: 20px;
}

.mdi-middle {
  vertical-align: middle !important;
}

// Additional material design icons sizes END
.flex-1 {
  flex: 1;
}

.activity {
  padding: 0 15px;
  .activity-date {
    padding: 2px 0;
    border-bottom: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
  }
  .activity-group {
    display: flex;
    .activity-group-aside {
      padding: 5px;
      width: 56px;
      //background: #fff7a3;
      img {
        width: 100%;
      }
    }
    .activity-group-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      .activity-item {
        flex: 1;
        //display: flex;
        flex-direction: column;
        padding-bottom: 6px;
        border-bottom: 1px solid #e0e0e0;
        &:last-child:not(:only-child) {
          border-bottom: none;
        }
        .activity-header {
          padding: 2px 8px;
          display: flex;
          .activity-type {
            margin-right: 3px;
          }
          .activity-actor {

          }
          .activity-action {
            margin: 0 3px;
          }
          .activity-actions {
            .rest {
              visibility: hidden;
            }
          }
          //background: #ebeeff;
        }
        &:hover .activity-actions .rest {
          visibility: visible;
        }
        .activity-body {
          flex: 1;
          padding: 10px;
          //background: #fff1ef;
          .message-body {
            .details {
              //display:inline !important;
            }
          }
          p {
            padding: 0;
          }
        }
        .activity-footer {
          padding: 2px 8px;
          .activity-item-write-date {
            margin-left: 5px;
            opacity: 0.6;
            &:after {
              margin-right: 10px;
              font-family: "Material Design Icons";
              content: char(map-get($mdi-icons, "pencil"));
              font-size: 18px;
            }
          }
        }
      }
    }
  }
}

.load-more {
  display: flex;
  justify-content: center;
}

#project-list {
  .project-list-item {
    cursor: default;
    .project-item-left {
      flex: 1;
      display: flex;
      align-items: center;
      .project-image-wrapper {
        width: 46px;
        height: 46px;
        padding: 5px;
        margin-right: 5px;
        img {
          width: 100%;
        }
      }
    }
  }
  .estimates {
    .estimate {
      margin: 0;
    }
  }
}

.irs-slider.single {
  cursor: col-resize;
}

.modal-backdrop.in {
  z-index: 10000 !important;
}

.modal.in {
  z-index: 10001 !important;
  position: absolute;
  top: 10%;
  .close {
    display: none;
  }
  &.dialog {
    max-width: 500px;
  }
}

.hoverable-icon {
  color: #212121;
  overflow: hidden;
  cursor: pointer;
  font-size: larger;
  margin-left: 3px;
  opacity: 0.6;
  &:hover {
    opacity: 1;
  }
}

responsive {
  display: none !important;
}

.collapsible-header {
  border-bottom: 0;
}

.collapsible-body {
  border-bottom: 0;
  p {
    padding: 0;
  }
}

.btn-overflow {
  display: inline;
  color: #212121;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  i {
    margin-right: 0;
  }
}

.attachments-box {
  border: 1px dashed #dbdbdb;
  border-radius: 3px;
  overflow: hidden;
  padding: 16px;
  display: block;
  .attachments-header {
    display: flex;
    align-items: center;
    justify-content: center;
    .drop-label {
      display: flex;
      align-items: center;
      font-size: 15px;
      font-weight: 500;
      line-height: 24px;
      position: relative;
      padding: .43em 0 .43em .57em;
      margin: 0 .29em;
      color: #9b9b9b;
      i {
        font-size: 24px;
        margin-right: .25em;
      }
    }
  }
  &.is-dragover {
    border-color: $agile-main-color;
    .drop-label {
      color: $agile-main-color;
    }
  }
  .attachment-item {
    display: flex;
    flex-direction: column;
    margin: 4px 0 0;
    padding: 6px 0 4px;
    .attachment-scope {
      display: flex;
      align-items: center;
      height: 36px;
      flex-direction: row;
      .icon {
        padding: 8px;
        display: none;
      }
      .meta {
        display: flex;
        flex-direction: column;
        flex: 1;
        flex-basis: 0.000000001px;
        height: 32px;
        transition: height 0.1s;
        width: 1px;
        color: #9b9b9b;
        .name, .status, .error {
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          line-height: 16px !important;
        }
        .name {
          font-size: 14px;
          font-weight: 500;
        }
        .status {
          font-size: 12px;
          font-weight: 400;
          letter-spacing: 0.011em;;
          color: #9b9b9b;
        }
        .error {
          color: #E61E6E;
          display: none;
        }
      }
      .commands {
        display: flex;
        .delete, .retry {
          display: none;
        }
      }
    }
    &.complete {
      .attachment-scope {
        > .icon.done {
          display: inherit;
        }
        .meta {
          height: 16px;
          color: #212121;
          .name {
          }
          .status {
            display: none;
          }
          .error {
            display: none;
          }
        }
        .commands {
          .abort {
            display: none;
          }
          .delete {
            display: inherit;
          }
        }
      }
    }
    &.with-error {
      .attachment-scope {
        > .icon.warning {
          color: #E61E6E;
          display: inherit;
        }
        .meta {
          .name {
            color: #E61E6E;
          }
          .status {
            display: none;
          }
          .error {
            display: inherit;
          }
        }
        .commands {
          .retry, .abort {
            display: inherit;
          }
        }
      }
      .progress {
        background-color: lighten(#E61E6E, 40%);;
        > * {
          background-color: #E61E6E;
        }
      }
    }
    &.downloadable {
      //&:hover {
      //  background-color: rgba($agile-main-color, 0.1);
      //}
      .attachment-scope {
        > .icon {
          display: none !important;
        }
        .image {
          width: 36px;
        }
        .meta {
          padding-left: 8px;
        }
        .commands {
          .delete {
            display: inherit;
          }
        }
      }
      .progress {
        display: none;
      }
    }
    &.fade-out {
      animation-name: attachment-item-fade-out;
      animation-duration: 0.6s;
    }
  }
}

@keyframes attachment-item-fade-out {
  0% {
    max-height: 38px;
  }

  33% {
    max-height: 38px;
    margin: 4px 0 0;
    padding: 6px 0 4px;
    opacity: 0.25;
  }

  67% {
    opacity: 0;
  }

  100% {
    max-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
  }

}

.odoo-ripple .waves-ripple {
  background: rgba($agile-main-color, 0.2);
  background: -webkit-radial-gradient(rgba($agile-main-color, 0.2) 0, rgba($agile-main-color, 0.3) 40%, rgba($agile-main-color, 0.4) 50%, rgba($agile-main-color, 0.5) 60%, rgba(255, 255, 255, 0) 70%);
  background: -o-radial-gradient(rgba($agile-main-color, 0.2) 0, rgba($agile-main-color, 0.3) 40%, rgba($agile-main-color, 0.4) 50%, rgba($agile-main-color, 0.5) 60%, rgba(255, 255, 255, 0) 70%);
  background: -moz-radial-gradient(rgba($agile-main-color, 0.2) 0, rgba($agile-main-color, 0.3) 40%, rgba($agile-main-color, 0.4) 50%, rgba($agile-main-color, 0.5) 60%, rgba(255, 255, 255, 0) 70%);
  background: radial-gradient(rgba($agile-main-color, 0.2) 0, rgba($agile-main-color, 0.3) 40%, rgba($agile-main-color, 0.4) 50%, rgba($agile-main-color, 0.5) 60%, rgba(255, 255, 255, 0) 70%);
}

.many2one {
  .caret {
    color: initial;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    height: 10px;
    margin: auto 0 38px;
    font-size: 10px;
    line-height: 10px;
  }
  .many2one-content {
    margin-top: -15px;
    display: block;
    opacity: 1;
    width: 100%;
  }
  .m2o-wrapper {
    position: relative;
  }
}

#agile_layout_fail {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  min-height: 24em;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  .message-wrapper {
    -webkit-box-flex: 0;
    -webkit-flex: none;
    flex: none;
    max-width: 50%;
    .message {
      width: 100%;
      padding: .8em 1em 0;
      border-radius: 3px;
      .title {
        text-align: center;
      }
      .back {
        margin-top: 10px;
      }
    }
  }
}

.model-list, #assigned-to-me .collection, #activity-stream .list {
  .empty-placeholder {
    display: none;
  }
  &.empty {
    .empty-placeholder {
      display: block;
    }
  }
}

.empty-placeholder {
  text-align: center;
  padding: 20px;
}

.shortcut-container {
  width: 10%;
  min-width: 120px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  .shortcut-item {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    border: 2px dashed black;
    margin: 3px;
    border-radius: 8px;
    .collection-item {
      display: none;
    }
    &.hover {
      background-color: $green-light !important;
      border-color: $green;
      color: $green;
      font-weight: bold;
    }
  }
}

.agile-toast {
  padding: 10px;
  .toast-container {
    display: flex;
    align-items: center;
    .toast-content {
      .toast-user-name {
        font-weight: bold;
      }
      .toast-task-name {
        font-weight: bold;
      }
    }
    .toast-left {
      width: 48px;
      min-width: 48px;
      height: 48px;
      margin-right: 10px;
      img {
        width: 100%;
      }
    }
    .toast-right {
      .toast-action {
        white-space: nowrap;
        margin-left: 15px;
      }
    }
  }
}

@media #{$medium-and-up} {
  .agile-toast {
    max-width: 500px;
  }
}

.non-backlog-list {
  .collection {
    margin: 0;
    border: none;
    overflow: visible;
    .collection-item {
      padding: 0;
    }
  }
  border: none;
  box-shadow: none;
  > li {
    margin: 0 0 20px 0;
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-radius: 2px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    &:hover {
      .collapsible-header {
        .context-menu {
          p {
            height: 3rem !important;
          }
          span.rest {
            display: inline;
          }
          .switch {
            display: inline;
          }
        }
      }
    }
  }
}

.chips-autocomplete.input-field {
  margin-top: 0;
  .autocomplete-content {
    margin-top: 0;
  }
}

.autocomplete ul li.new span::before {
  content: "Create ";
  color: black;
  font-style: italic;
}

.agile-tag {
  margin-right: 5px;
  white-space: nowrap;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: small;
  font-weight: 400;
  background-color: transparent;
  display: inline-block;
  color: $done-color;
  border: 1px solid $done-color;
}